package com.itheima.animal;

public class AnimalOperator {
    public void useCat(Cat cat) {
        cat.eat();
    }
    public void useDog(Dog dog) {
        dog.eat();
    }
    public void useAnimal(Animal animal){
        animal.eat();
    }

}
